package com.stylefeng.guns.modular.product.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * Excel上传表
 * </p>
 *
 * @author stylefeng123
 * @since 2019-02-18
 */
@TableName("sys_excel_upload")
public class ExcelUpload extends Model<ExcelUpload> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 文件名
     */
    private String filename;
    /**
     * 上传时间
     */
    private Date uploadtime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public Date getUploadtime() {
        return uploadtime;
    }

    public void setUploadtime(Date uploadtime) {
        this.uploadtime = uploadtime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ExcelUpload{" +
        "id=" + id +
        ", filename=" + filename +
        ", uploadtime=" + uploadtime +
        "}";
    }
}
